package com.yicong.ants.bean.account;

/**
 * @author cchao
 * @version 2019-05-24.
 */
public class BonusInfo {
    String bonus_balance;
    String cash_balance;
    String have_withdraw_cash;

    public BonusInfo() {
    }

    public String getBonus_balance() {
        return this.bonus_balance;
    }

    public String getCash_balance() {
        return this.cash_balance;
    }

    public String getHave_withdraw_cash() {
        return this.have_withdraw_cash;
    }

    public void setBonus_balance(String bonus_balance) {
        this.bonus_balance = bonus_balance;
    }

    public void setCash_balance(String cash_balance) {
        this.cash_balance = cash_balance;
    }

    public void setHave_withdraw_cash(String have_withdraw_cash) {
        this.have_withdraw_cash = have_withdraw_cash;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof BonusInfo)) return false;
        final BonusInfo other = (BonusInfo) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$bonus_balance = this.getBonus_balance();
        final Object other$bonus_balance = other.getBonus_balance();
        if (this$bonus_balance == null ? other$bonus_balance != null : !this$bonus_balance.equals(other$bonus_balance))
            return false;
        final Object this$cash_balance = this.getCash_balance();
        final Object other$cash_balance = other.getCash_balance();
        if (this$cash_balance == null ? other$cash_balance != null : !this$cash_balance.equals(other$cash_balance))
            return false;
        final Object this$have_withdraw_cash = this.getHave_withdraw_cash();
        final Object other$have_withdraw_cash = other.getHave_withdraw_cash();
        if (this$have_withdraw_cash == null ? other$have_withdraw_cash != null : !this$have_withdraw_cash.equals(other$have_withdraw_cash))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof BonusInfo;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $bonus_balance = this.getBonus_balance();
        result = result * PRIME + ($bonus_balance == null ? 43 : $bonus_balance.hashCode());
        final Object $cash_balance = this.getCash_balance();
        result = result * PRIME + ($cash_balance == null ? 43 : $cash_balance.hashCode());
        final Object $have_withdraw_cash = this.getHave_withdraw_cash();
        result = result * PRIME + ($have_withdraw_cash == null ? 43 : $have_withdraw_cash.hashCode());
        return result;
    }

    public String toString() {
        return "BonusInfo(bonus_balance=" + this.getBonus_balance() + ", cash_balance=" + this.getCash_balance() + ", have_withdraw_cash=" + this.getHave_withdraw_cash() + ")";
    }
}
